//封装请求url
exports.do = function (siteinfo,action){
  var timestamp = Date.parse(new Date());
  timestamp = timestamp / 1000;
  var userInfo = wx.getStorageSync('userInfo');
  var sessionid = userInfo.sessionid;
  var url = siteinfo.siteroot + '?i=' + siteinfo.uniacid + '&t=' + siteinfo.multiid + '&v=' + siteinfo.version + '&from=wxapp&' + '&c=entry&a=wxapp' + '&m=' + siteinfo.m + '&';


  if(action){
    url += 'do=' + action + '&';
  }
  url += 'timestamp=' + timestamp;
  return url;
}